<template>
  <level-form :mode="mode" :code="$route.query.code || ''" />
</template>

<script>
import LevelForm from './components/LevelForm.vue'

export default {
  name: 'LevelEditPage',
  components: { LevelForm },
  computed: {
    mode() {
      return this.$route.query.code ? 'edit' : 'create'
    }
  }
}
</script>


